package com.example.orderpayrabbit.conf;

import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Exchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;

/**
 * @Authther: mrwu
 * @date:2021/5/13-05
 * @Description:com.example.orderpayrabbit.conf
 */
public class RabbitConf {

   @Bean
    public Queue queue(){
       return new Queue("");
   }

   @Bean
    public Exchange exchange(){
       return new DirectExchange("", true, false, null);
   }

}
